package uba.ing2.subite.demo;

public class StringView<T>{
	private T value;
	private String displayString;

	public static <T> StringView<T> create(T value, String displayString) {
		return new StringView<T>(value, displayString);
	}

	public StringView(T value, String displayString) {
		this.value = value;
		this.displayString = displayString;
	}

	public T getValue() {
		return value;
	}

	public String getDisplayString() {
		return displayString;
	}
	
	@Override
	public String toString() {
		return getDisplayString();
	}
}
